package com.flot.yazb.model.other;

import com.flot.yazb.base.model.BModel;
import com.flot.yazb.base.client.RetrofitFactory;
import com.flot.yazb.aop.stub.RMCallback;
import com.flot.yazb.aop.stub.RMResponse;
import com.flot.yazb.retrofit.service.BService;


/**
 * Created by fengdongfei on 2017/9/18.
 */

public class SetModle extends BModel {

    public static void getSeeting(final Transit<SetModle> incubator) {
        RetrofitFactory.getInstance()
                .create(BService.UserService.class)
                .getSeet()
                .enqueue(new RMCallback<RMResponse<SetModle>>(incubator.getContext()) {
                    @Override
                    protected void onSuccess(RMResponse<SetModle> result) {
                        incubator.onBorn(result.content, result.code(), result.message());
                    }

                    @Override
                    protected void onFail(String errorCode, String errorInfo) {
                        incubator.onBorn(null, errorCode, errorInfo);
                    }
                });
    }

    public boolean isSuccess = false;
    public String showbox;
    public String phonebox;
    public int weixinpay = 1;
    public int alipay = 1;
    public String qq;
    public int showvideotimes=7;

}
